package com.ruoyi.mes.remote;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.domain.SysUser;
import com.ruoyi.system.api.model.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(value="ruoyi-system")
public interface UserFeignClient {

    @GetMapping("/user/info/{username}")
//    SysUser getUserByUsername(@PathVariable("username") String username);
    R<LoginUser> getUserByUsername(@PathVariable("username") String username);

    @GetMapping("/user/{userId}")
    AjaxResult getUserByUserId(@PathVariable("userId") Integer userId);
}

//————————————————
//        版权声明：本文为CSDN博主「鲸鱼姐」的原创文章，遵循CC 4.0 BY-SA版权协议，转载请附上原文出处链接及本声明。
//        原文链接：https://blog.csdn.net/zhaolulu916/article/details/119769175